import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import Cate from './views/cate.vue'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
    },
    {
    	path:'/cate',
    	component: () => import(/* webpackChunkName: "about" */ './views/cate.vue')
    },
    {
    	path:'/user',
    	component: () => import(/* webpackChunkName: "about" */ './views/user.vue')
    },
    {
    	path:'/order',
    	component: () => import(/* webpackChunkName: "about" */ './views/order.vue')
    },
    {
    	path:'/information',
    	component: () => import(/* webpackChunkName: "about" */ './views/information.vue')
    },
    {
    	path:'/comment',
    	component: () => import(/* webpackChunkName: "about" */ './views/comment.vue')
    },
    {
    	path:'/product',
    	component: () => import(/* webpackChunkName: "about" */ './views/product.vue')
    },
    {
    	path:'/helper',
    	component: () => import(/* webpackChunkName: "about" */ './components/help/Asked.vue')
    },
    {
    	path:'/picture',
    	component: () => import(/* webpackChunkName: "about" */ './views/picture.vue')
    }
    
  ]
})
